<?php
/**
 * @package WordPress
 * @subpackage Freshine
 * @since Freshine 1.1.0
 */
?>

<?php get_header(); ?>

	<div id="f9-mainbody" class="wrap">
		<div class="main clearfix">
			<?php get_sidebar( 'left' );?>
			<div id="f9-container" class="<?php f9_container_class() ?>">
            	<?php get_sidebar( 'content-top' );?>
				<div id="f9-content">
					<?php if ( have_posts() ) the_post(); ?>
					
                    <h1 class="page-title">
						<?php printf( __( 'Author Archives: %s', 'f9vn' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?>
                    </h1>
					<?php
					// If a user has filled out their description, show a bio on their entries.
					if ( get_the_author_meta( 'description' ) ) : ?>
					<div id="author-info">
						<div id="author-avatar">
							<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); ?>
						</div><!-- #author-avatar -->
						<div id="author-description">
							<h2><?php printf( __( 'About %s', 'f9vn' ), get_the_author() ); ?></h2>
							<?php the_author_meta( 'description' ); ?>
						</div><!-- #author-description	-->
					</div><!-- #entry-author-info -->
					<?php endif; ?>
					
					<?php rewind_posts(); ?>
					
					<?php f9_content_nav( 'nav-above' ) ?>
					
                    <?php while ( have_posts() ) : the_post(); ?>
					
                    <?php get_template_part( 'content', get_post_format() ); ?>
					
					<?php endwhile; ?>
					
					<?php f9_content_nav( 'nav-below' ) ?>
					
				</div><!-- #f9-content -->
				<?php get_sidebar( 'content-bottom' );?>
			</div><!-- #f9-container -->
            <?php get_sidebar( 'right' );?>
		</div>
	</div><!-- #f9-mainbody -->

<?php get_footer(); ?>